package com.suray.attendance.model.enums.erp;

/**
 * Description: erp中工单单据类型，输入值是工单类型编号，输出是工单类型全称
 * Author: linyu
 * Date: 2023/11/8
 */
public enum MoDocTypeCodeEnum {

    // 删除了下面所有的"工单"
//    安徽机电厂内工单("5180"),
    安徽机电生产("5180"),
    安徽机电委外("5181"),
    安徽机电重工("5380"),
    安徽机电委外重工("5381"),
//    安徽生产厂内工单("5140"),
    安徽生产生产("5140"),
    安徽生产委外("5141"),
    安徽哥伦布报工("5142"),
    安徽研发("5143"),
    研发报工("5146"),
    安徽生产重工("5340"),
    安徽生产委外重工("5341");


    private String docTypeCode;

    MoDocTypeCodeEnum(String docTypeCode) {
        this.docTypeCode = docTypeCode;
    }

    public String getDocTypeCode() {
        return docTypeCode;
    }

    public void setDocTypeCode(String docTypeCode) {
        this.docTypeCode = docTypeCode;
    }

    public static String getDocTypeNameByDocTypeCode(String docTypeCode) {
        MoDocTypeCodeEnum arrObj[] = MoDocTypeCodeEnum.values();
        for (MoDocTypeCodeEnum obj : arrObj) {
            if (obj.getDocTypeCode().equals(docTypeCode)) {
                return obj.name();
            }
        }
        return "";
    }

}
